WARNING: This program has a syntax error, which means we need to fix it!

RULE: To use a value created in a function outside of the function, you must return it! The second two functions in this program loop through a list created in the first function. If the list is not returned, those loops can't iterate (run)!

  • Click Run and read the error message. The function is trying to run but can't, because the list doesn't exist!
  • Add a return statement for cloned_sprites on line 9 so the other functions can run!

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)